import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    selectIndex: 1,
    contactMsg: {},
  },
  mutations: {
    changeSelectIndex(state, num) {
      state.selectIndex = num
    },
    setContactMsg(state, msg) {
      state.contactMsg = msg
    },
  },
  actions: {},
  modules: {},
})
